package com.boarsoft.auth;

import com.boarsoft.bean.ReplyInfo;

public class DefaultAuthReplyer implements AuthReplyer {

	@Override
	public Object reply(int status) throws Exception {
		switch (status) {
		case 200:
			return new ReplyInfo<String>();
		case 401:
			return new ReplyInfo<String>(false, "Msg.auth.unauthorized");
		case 403:
			return new ReplyInfo<String>(false, "Msg.login.required");
		default:
			throw new IllegalAccessException(String.valueOf(status));
		}
	}

}
